home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-03
/
qbasicpg.zip
/
LOCATE-3.BAS
< prev
next >
Wrap
BASIC Source File
|
1989-08-31
|
402b
|
19 lines
' LOCATE-3.BAS
' This program demonstrates simple animation.
CLS
LOCATE 10, 1 ' position the first X
PRINT "X"
FOR i% = 2 TO 80 ' loop through the rest
LOCATE 10, i%
PRINT "X" ' print an X next to the previous X
LOCATE 10, i% - 1
PRINT " " ' "erase" the previous X
FOR j% = 1 TO 300 ' delay loop
NEXT j%
NEXT i%